package icu.xblogs.report.domain;

import icu.xblogs.report.plugin.Page;

import java.util.List;

/**
 * @author Frank KONG
 * @version 1.0
 * @date 2020/11/18 20:24
 *
 * 封装page和列表返回前端解析
 */
public class PageAndList<T> {

    private Page page;
    private List<T> list;

    public PageAndList(Page page, List<T> list) {
        this.page = page;
        this.list = list;
    }

    public Page getPage() {
        return page;
    }

    public void setPage(Page page) {
        this.page = page;
    }

    public List<T> getList() {
        return list;
    }

    public void setList(List<T> list) {
        this.list = list;
    }

    @Override
    public String toString() {
        return "PageAndList{" +
                "page=" + page +
                ", list=" + list +
                '}';
    }
}
